module.exports = {
    dev: { //开发环境的配置
        port: 9090,
        host: "localhost",
        mode: "development",
        devServer: {
            before(app) {
                app.get("/api/list", ((resolve, reject) => {
                    res.json({ code: 1, msg: "123" })
                }))
            },
            //resolve简化路径
            // proxy:{
            //     "/classify":"http://localhost:3000"//将class的借口代理到3000端口
            // }
        },
        devtool: "cheap-module-eval-source-map"
    },
    prod: {

    }
}